package com.itheima.demo;

public class demo1 {
    public static void main(String[] args) {
        int arr[] = {1,2,3,4};//静态初始化简写版
        for(int i = 1;i<arr.length; i+=2){
            System.out.println(arr[i]); //arr[1] arr[3]
        }
    }
}
